package com.nwpu.server.authserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.google.code.kaptcha.Producer;
import com.nwpu.server.authserver.entity.CaptchaEntity;
import com.nwpu.server.authserver.entity.VerifyCode;
import com.nwpu.server.common.response.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;

/**
 * @Author: YuXingZh
 * @Date: Created in 20:02 2022-04-17
 * @Description:
 */
public interface CaptchaService extends IService<CaptchaEntity> {

    PageUtils queryPage(Map<String, Object> params);

    BufferedImage getCaptcha(String uuid);

    boolean validate(String uuid, String captcha);
}
